package com.demo1;

/**
 * Created by Administrator on 2017/3/25.
 */
public class QiangZhiZhuanHuan2 {
    public static void main(String[] args) {
        int i1 = 128;
        byte b = (byte) i1;
        System.out.println("int强制类型转换byte后值等于" + b);
        double d = 123.456;
        int i2 = (int) d;
        System.out.println("double强制类型转换int后值等于" + i2);
    }
}
